Skip to content

Deal with raised error when PROPFIND doesn't respond properly#655

Merged
tobixen merged 2 commits intomasterfrom
issue-calendarcli-114
Mar 30, 2026
Merged

Deal with raised error when PROPFIND doesn't respond properly#655
tobixen merged 2 commits intomasterfrom
issue-calendarcli-114

Conversation

@tobixen
Copy link
Copy Markdown
Member

@tobixen tobixen commented Mar 26, 2026

In production mode, error.assert_() only logs rather than raising, so the
else-branch of _resolve_properties() would fall through to self.props.update(rc)
with rc unbound, causing UnboundLocalError. Adding return {} avoids the crash.

…paths don't match

In production mode, error.assert_() only logs rather than raising, so the
else-branch of _resolve_properties() would fall through to self.props.update(rc)
with rc unbound, causing UnboundLocalError.  Adding return {} avoids the crash.

Fixes pycalendar/calendar-cli#114

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tobixen tobixen merged commit 8f13339 into master Mar 30, 2026
9 checks passed
@tobixen tobixen deleted the issue-calendarcli-114 branch March 30, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant